<!DOCTYPE html>
<html>
	<head>
		<meta charset="utf-8">
		<title>window对象</title>
		<style>
			#kb{
				cursor:pointer;
				color: blue;
			}
		</style>
		<script> 
			function showPass(t){ 
				var p=document.getElementById("pass");
				if(p.type=="password"){
					p.type="text";
					t.innerHTML="隐藏";
				}else{
					p.type="password";
					t.innerHTML="显示";
				} 
			}
		</script>
	</head>
	<body> 
	
		<input type="password" name="yourpass" id="pass"/><span id='kb' onclick="showPass(this)">显示</span>
		<input type="radio" id="accpet" name="accpet" value="yes"/>请选择接受我们的用户协议
		
	</body>
</html>